package com.twu.biblioteca.menus;

import com.twu.biblioteca.MovieList;
import com.twu.biblioteca.OutputController;

import java.io.IOException;

public class MovieMenu implements Menu {
    private final MovieList movieList;
    private final OutputController outputController;
    private int nextMenu;

    public MovieMenu(MovieList movieList, OutputController outputController) {
        this.movieList = movieList;
        this.outputController = outputController;
    }

    @Override
    public void displayMenu() {
    }

    @Override
    public void runCommand() {
        outputController.drawOptions(movieList.getOptions());
        nextMenu = 1;
    }

    @Override
    public void getInput() throws IOException {

    }

    @Override
    public int getNextMenu() {
        return nextMenu;
    }

    @Override
    public boolean mustBeLoggedIn() {
        return false;
    }
}
